package training;

import java.util.Scanner;

public class question02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        String x = scanner.nextLine();
        int y = 0;
        for (int i = num; i > 0; i--) {
            if (i % 2 == 1) {
                int m = (num - i) / 2;
                for (int n = 0; n < m; n++) {
                    if(n==0){
                        System.out.print("  ");
                    }else if(n == m-1){
                        System.out.print("  ");
                    }else{
                        System.out.print(" ");
                    }
                }
                for (int j = 0; j < i; j++) {
                    System.out.print(x);
                }
                for (int n = 0; n < m; n++) {
                    System.out.print(" ");
                }
            }
            System.out.println();
            y++;
            if (y == num)
                break;
        }
        int m = 0;
        for (int i = 1; i <= num; i++) {
            if (i % 2 == 1) {
                if(i==1){
                    continue;
                }
                int z = (num - i) / 2;
                for (int n = 0; n < z; n++) {
                    if(n==0){
                        System.out.print("  ");
                    }else if(n == m-1){
                        System.out.print("  ");
                    }else{
                        System.out.print(" ");
                    }
                }
                for (int j = 0; j < i; j++) {
                    System.out.print(x);
                }
                for (int n = 0; n < z; n++) {
                    System.out.print(" ");
                }
            }
            System.out.println();
            m++;
            if (m == num)
                break;
        }
    }
}
